﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoodsRank.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Shop.GoodsRank" %>


<!doctype html>
<html>
<head id="Head1" runat="server">
    <title>销售统计/排行</title>
    <meta charset="utf-8"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <%: Scripts.Render("~/Scripts/AdminBase") %>


    <%: Styles.Render("~/Content/Bootstrap/css") %>


    <script runat="server" type="text/C#">
        protected int PaiMing;
    </script>

</head>
<body>
<form id="form1" runat="server">
    <table style="width: 98%;" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
        <tr>
            <td style="width: auto">
                <asp:Label ID="lblPath" runat="server"></asp:Label>
            </td>
            <td style="text-align: right; width: auto;">
                快速查找：<asp:DropDownList ID="ddlTotal" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlTotal_SelectedIndexChanged">
                    <asp:ListItem Value="0">所有统计</asp:ListItem>
                    <asp:ListItem Value="1">今天</asp:ListItem>
                    <asp:ListItem Value="2">本周内</asp:ListItem>
                    <asp:ListItem Value="3">本月内</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False"
                  GridLines="None" CssClass="table table-bordered table-condensed table-hover" onrowdatabound="GV_List_RowDataBound" ShowFooter="True">
        <Columns>
            <asp:TemplateField HeaderText="排名">

                <ItemTemplate>
                    <%= (++this.PaiMing) %>
                </ItemTemplate>
                <HeaderStyle Width="60px"/>
                <ItemStyle HorizontalAlign="Center"/>
            </asp:TemplateField>
            <asp:BoundField HeaderText="商品名称" DataField="ContentTitle"/>
            <asp:BoundField HeaderText="单位" DataField="Unit">
                <HeaderStyle Width="80px"/>
                <ItemStyle HorizontalAlign="Center"/>
            </asp:BoundField>
            <asp:BoundField HeaderText="数量" DataField="Quantity">
                <HeaderStyle Width="80px"/>
                <ItemStyle HorizontalAlign="Right"/>
            </asp:BoundField>
            <asp:BoundField HeaderText="金额" DataField="Total" DataFormatString="{0:c}">
                <HeaderStyle Width="80px"/>
                <ItemStyle HorizontalAlign="Right"/>
                <HeaderStyle Width="120px"/>
                <ItemStyle HorizontalAlign="Right"/>
            </asp:BoundField>
        </Columns>
        <HeaderStyle CssClass="HeaderStyle"/>
    </asp:GridView>
</form>
</body>
</html>